import request from '@/tools/request'

export function dictCreate(data) {
  return request({
    url: '/dict/create',
    method: 'post',
    data
  })
}

export function dictFindAll(data) {
  return request({
    url: '/dict/findAll',
    method: 'post',
    data,
    loading: false
  })
}

export function dictFindOne(data) {
  return request({
    url: '/dict/findOne',
    method: 'post',
    data
  })
}

export function dictUpdate(data) {
  return request({
    url: '/dict/update',
    method: 'post',
    data
  })
}

export function dictRemove(data) {
  return request({
    url: '/dict/remove',
    method: 'post',
    data
  })
}

export function dictRemoveBatch(data) {
  return request({
    url: '/dict/removeBatch',
    method: 'post',
    data
  })
}

export function dictCreateBatch(data) {
  return request({
    url: '/dict/createBatch',
    method: 'post',
    data
  })
}
